package es.srn.ipartek.practicas;

import static org.junit.Assert.assertSame;

import java.util.ArrayList;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class ClsArrayListTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testPosicion() {
		
		ArrayList<String> listaPaises = new ArrayList();
		listaPaises.add("Holanda");
		listaPaises.add("Francia");
		listaPaises.add("Portugal");
		
		assertSame("Holanda", listaPaises.get(0));
		assertSame("Francia", listaPaises.get(1));
		assertSame("Portugal", listaPaises.get(2));
		
	}

}
